package com.poly.polyarr;

public class Teacher extends Person {

    public Teacher(String Name, int Age, double Salary) {
        super(Name, Age);
        this.m_Salary = Salary;
    }

    public String Say() {
        return super.Say() + this.m_Salary + "\t";
    }
    public void Teach() {
        System.out.println(super.getName() + "老师正在讲课");
    }
    private double m_Salary;
}
